#!/opt/local/bin/zsh
############################################################## {{{1 ##########
#   $Author: krischik@users.sourceforge.net $
#   $Revision: 19 $
#   $Date: 2008-09-25 17:24:17 +0000 (Thu, 25 Sep 2008) $
#   $HeadURL: http://macport-staging.googlecode.com/svn/trunk/ports/emulators/stonx/files/Atari320XE.command $
############################################################## }}}1 ##########

local User_Data="${HOME}/Library/Application Support/Atari800"
local System_Data="/opt/local/share/atari800";

if test ! -d "${User_Data}"; then
    mkdir "${User_Data}";
fi;

if test ! -w  "${User_Data}/MYDOS45D.ATR"; then
    cp						\
	/opt/local/share/atari800/MYDOS45D.ATR	\
	"${User_Data}/MYDOS45D.ATR"		;
fi;

/opt/local/bin/atari800				\
    -320xe					\
    -basic					\
    -pal					\
    -windowed					\
    -width 1280					\
    -height 960					\
    -bpp 16					\
    -xlxe_rom "${System_Data}/ATARIXL.ROM"	\
    -basic_rom "${System_Data}/ATARIBAS.ROM"	\
    ${User_Data}/MYDOS45D.ATR			;

############################################################ {{{1 ###########
# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
